 # handle html page header used in servelet
 # @param title the title of the page
 # @param refresh the time between refresh if needed
 # @return HTML header
 # \version 1.0
 # \date   Oct 2009
 # \author Elie 
def headers(title, refresh=nil)
  
  head = '<html><head>'
  head += '<meta http-equiv="refresh" content="' + refresh.to_s if refresh
  head += '" />' if refresh
  head += '<title>' + title + '<title>'
  head += '</head><body>
           <div id=title>Nightingale password cracker</div>
           <div id=menu><a href="/status">Status</a> | <a href="/submit">Submit a job</a> | <a href="/job">Jobs results</a> | <a href="/client">Clients info</a></div>
  
  '
  head
end